package cn.bklovezz.yixiantong.ram.mapper;

import cn.bklovezz.yixiantong.ram.dto.AdminLoginUser;
import cn.bklovezz.yixiantong.ram.dto.AdminRegisterLoginUser;
import cn.bklovezz.yixiantong.ram.entity.LoginUserModel;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {
  public abstract Integer getUserAccountCount();

  public abstract LoginUserModel findUserByUsername(String username);

  public abstract void insertUser(AdminRegisterLoginUser user);

  public abstract LoginUserModel checkUsernameAndPassword(AdminLoginUser user);

  public abstract void updateUser(LoginUserModel user);

  public abstract LoginUserModel findUserByToken(String token);

  public abstract void deleteUser(LoginUserModel user);
}
